#include <windows.h>
#include "App.h"

//Main Function
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int ShowCmd)
{
	//Create a instance of Game App passing in hInstance.
	//App myApp(hInstance, "DX10 Engine");
	App* myApp;

	// Create the system object.
	myApp = new App(hInstance, "DX10 App");
	if(!myApp)
	{
		return 0;
	}

	// Initialize and run the system object.
	if(myApp->Initialize())
	{
		myApp->Run();
	}

	// Shutdown and release the system object.
	myApp->Shutdown();
	delete myApp;
	myApp = 0;

	return 0;
}